package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author:dzp
 * @Date :2023/6/2 - 06 - 02 - 20:17
 */
@Getter
@Setter
@Schema(name = "CommentSecondary", description = "评论第二表")
public class CommentSecondary {

    private static final long serialVersionUID = 1L;

    @Schema(description = "评论id")
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    @Schema(description = "文章id")
    private Integer article;

    @Schema(description = "用户id")
    private Integer userId;

    @Schema(description = "评论类型")
    private Integer commentType;

    @Schema(description = "评论内容")
    private String commentContent;

    @Schema(description = "电子")
    private Integer commentLike;

    @Schema(description = "收藏")
    private Integer commentCollect;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Byte tip;

}
